import request from '@/utils/request'

export function listDiskScales(params) {
  return request({
    url: '/diskScale/listMap',
    method: 'get',
    params: params
  })
}

export function saveBatch(datas) {
  return request({
    url: '/saveBatch/diskScale',
    method: 'post',
    header:{
      'Content-Type':'application/json'  //如果写成contentType会报错
    },
    data: datas
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/diskScale/importTemplate',
    method: 'get'
  })
}
